// by Xeno

private ["_vec","_side"];

#define __awc(wtype,wcount) _vec addWeaponCargo [#wtype,wcount];
#define __amc(mtype,mcount) _vec addMagazineCargo [#mtype,mcount];

_vec = _this select 0;
_side = d_own_side;
if (count _this > 1) then {_side = _this select 1};
clearMagazineCargo _vec;
clearWeaponCargo _vec;

if (_side == "WEST") then {
	__awc(M9,2)
	__awc(M9SD,2)
	__awc(Colt1911,2)
	__awc(M16A2,2)
	__awc(M16A2GL,2)
	__awc(M16A4,2)
	__awc(M16A4_GL,2)
	__awc(M16A4_ACG,2)
	__awc(M16A4_ACG_GL,2)
	
	__awc(M4A1,2)
	__awc(M4A1_HWS_GL,2)
	__awc(M4A1_HWS_GL_camo,2)
	__awc(M4A1_HWS_GL_SD_Camo,2)
	__awc(M4A1_RCO_GL,2)
	__awc(M4A1_Aim,2)
	__awc(M4A1_Aim_camo,2)
	__awc(M4A1_AIM_SD_camo,2)
	
	__awc(G36a,2)
	__awc(G36c,2)
	__awc(G36_C_SD_eotech,2)
	__awc(G36k,2)
	
	__awc(M1014,2)
	__awc(MP5A5,2)
	__awc(MP5SD,2)
	
	__awc(M8_carbine,2)
	__awc(M8_carbineGL,2)
	__awc(M8_compact,2)
	
	__awc(MG36,2)
	__awc(Mk_48,2)
	__awc(M240,2)
	__awc(M249,2)
	__awc(M8_SAW,2)
	
	__awc(M24,2)
	__awc(DMR,2)
	__awc(M107,2)
	__awc(M40A3,2)
	__awc(M4SPR,2)
	__awc(M8_sharpshooter,2)

	// VSS Vintorez, the only SD sniper rifle
	__awc(VSS_vintorez,2)
	
	__awc(M136,2)
	__awc(SMAW,2)

	__awc(JAVELIN,2)
	__awc(STINGER,2)
	
	__amc(HandGrenade_West,50)
	__amc(Smokeshell,50)
	__amc(Smokeshellred,50)
	__amc(Smokeshellgreen,50)
	__amc(SmokeShellYellow,50)
	__amc(SmokeShellOrange,50)
	__amc(SmokeShellPurple,50)
	
	__amc(30Rnd_9x19_MP5,50)
	__amc(30Rnd_9x19_MP5SD,50)
	__amc(7Rnd_45ACP_1911,50)
	__amc(15Rnd_9x19_M9,50)
	__amc(15Rnd_9x19_M9SD,50)
	__amc(20Rnd_556x45_Stanag,50)
	__amc(30Rnd_556x45_Stanag,50)
	__amc(30Rnd_556x45_StanagSD,50)
	__amc(30Rnd_556x45_G36,50)
	__amc(200Rnd_556x45_M249,50)
	__amc(100Rnd_556x45_BetaCMag,50)
	__amc(8Rnd_B_Beneli_74Slug,50)
	__amc(5Rnd_762x51_M24,6)
	__amc(20Rnd_762x51_DMR,6)
	__amc(10Rnd_127x99_M107,6)
	__amc(100Rnd_762x51_M240,50)
	__amc(30Rnd_545x39_AK,50)
	__amc(100Rnd_762x54_PK,50)
	__amc(75Rnd_545x39_RPK,50)
	__amc(1Rnd_HE_M203,50)
	__amc(FlareWhite_M203,50)
	__amc(FlareGreen_M203,50)
	__amc(FlareRed_M203,50)
	__amc(FlareYellow_M203,50)
	__amc(M136,10)
	__amc(SMAW_HEAA,4)
	__amc(SMAW_HEDP,4)
	__amc(JAVELIN,2)
	__amc(STINGER,4)
	__amc(PG7V,6)
	__amc(PG7VR,6)
	__amc(PG7VL,6)

	// VSS Vintorez ammo
	__amc(10Rnd_9x39_SP5_VSS,50)
	__amc(20Rnd_9x39_SP5_VSS,50)
	
	__amc(Pipebomb,10)
	__amc(Mine,30)
	__awc(Laserdesignator,2)
	__amc(Laserbatteries,20)
	__awc(Binocular,2)
	__awc(NVGoggles,2)
	__awc(ItemCompass,2)
	__awc(ItemGPS,2)
	__awc(ItemMap,2)
	__awc(ItemRadio,2)
	__awc(ItemWatch,2)
};

If (_side != "WEST") then {
	__awc(AK_107_kobra,2)
	__awc(AK_107_GL_kobra,2)
	__awc(AK_107_GL_pso,2)
	__awc(AK_107_pso,2)
	__awc(AK_74,2)
	__awc(AK_74_GL,2)
	__awc(AK_47_M,2)
	__awc(AK_47_S,2)
	__awc(AKS_74_kobra,2)
	__awc(AKS_74_pso,2)
	__awc(AKS_74_U,2)
	__awc(AKS_74_UN_kobra,2)
	__awc(Bizon,2)
	__awc(bizon_silenced,2)
	__awc(Saiga12K,2)
	__awc(VSS_vintorez,2)
	
	__awc(Pecheneg,2)
	__awc(PK,2)
	__awc(RPK_74,2)
	
	__awc(KSVK,2)
	__awc(SVD,2)
	__awc(SVD_CAMO,2)
	
	__awc(Makarov,2)
	__awc(MakarovSD,2)
	
	__awc(Igla,2)
	__awc(MetisLauncher,2)
	__awc(RPG18,2)
	__awc(RPG7V,2)
	
	__awc(STRELA,2)
	
	__amc(HandGrenade_East,50)
	__amc(Smokeshell,50)
	__amc(Smokeshellred,50)
	__amc(Smokeshellgreen,50)
	__amc(SmokeShellYellow,50)
	__amc(SmokeShellOrange,50)
	__amc(SmokeShellPurple,50)
	
	__amc(30Rnd_545x39_AK,50)
	__amc(30Rnd_762x39_AK47,50)
	__amc(64Rnd_9x19_Bizon,50)
	__amc(64Rnd_9x19_SD_Bizon,50)
	__amc(8Rnd_B_Saiga12_74Slug,50)
	__amc(10Rnd_9x39_SP5_VSS,50)
	__amc(20Rnd_9x39_SP5_VSS,50)
	__amc(75Rnd_545x39_RPK,50)
	__amc(FlareWhite_GP25,50)
	__amc(FlareGreen_GP25,50)
	__amc(FlareRed_GP25,50)
	__amc(FlareYellow_GP25,50)
	__amc(1Rnd_HE_GP25,50)
	__amc(30Rnd_545x39_AKSD,50)
	__amc(100Rnd_762x54_PK,50)
	__amc(10Rnd_762x54_SVD,6)
	__amc(8Rnd_9x18_Makarov,50)
	__amc(8Rnd_9x18_MakarovSD,50)
	__amc(5Rnd_127x108_KSVK,6)
	__amc(PG7V,6)
	__amc(PG7VR,6)
	__amc(PG7VL,6)
	__amc(OG7,6)
	__amc(AT13,6)
	__amc(RPG18,6)
	__amc(Igla,10)
	__amc(Strela,4)
	
	__amc(Mine,30)
	__amc(Pipebomb,10)
	__awc(Laserdesignator,2)
	__amc(Laserbatteries,20)
	__awc(Binocular,2)
	__awc(NVGoggles,2)
	__awc(ItemCompass,2)
	__awc(ItemGPS,2)
	__awc(ItemMap,2)
	__awc(ItemRadio,2)
	__awc(ItemWatch,2)
};
diag_log Format["(%1)[%2]: %3",diag_tickTime,"weaponcargo.sqf","Ammo Box filled!"];

